<!DOCTYPE html>
<html>
<head>
    <title>用户管理</title>
    <style>
        .el-autocomplete-suggestion{
            width: 300px !important;
        }
        .el-autocomplete-suggestion li {
            padding: 0!important;
        }
    </style>
    <script>
        var pageConfig = {
            jss: ["pc/system/user"]
        };

        var p = {
            a: "${shiro.hasPermission('sys.user')}",
            //b: ${shiro.hasPermission('sys:user:init')}
            permission0: "${shiro.hasPermission('sys:user:industry')}",
            permission1: "${shiro.hasPermission('sys:user:role')}",
            permission2: "${shiro.hasPermission('sys:user:update')}",
            permission3: "${shiro.hasPermission('sys:user:delete')}"
        };

    </script>
    @@include("/pc/common/_head.html"){}@@
</head>
<!--class="layui-layout-body"-->
<body>

<div v-block id="page">
    @@include("/pc/common/_search2TableConfig.html"){}@@
    <el-main>
        <el-col :xs="24" :sm="6" :md="6" :lg="5" :xl="5">
            <el-tag type="danger" style="margin-bottom: 5px">授权用户数为{{registerCount}},已注册用户数为{{userCount}}</el-tag>
            <el-switch class="tree-switch" v-model="serchData.cascade" active-value="1" inactive-value="0"
                       width="36"
                       inactive-text="组织树： 级联显示用户"
                       @change="queryData"></el-switch>
            <!--<ul id="treeview"></ul>-->
            <el-tree :data="treeData" :props="defaultProps"
                     @node-click="handleNodeClick"
                     node-key="id"
                     :expand-on-click-node="false"
                     default-expand-all></el-tree>
        </el-col>
        <el-col :xs="24" :sm="18" :md="18" :lg="19" :xl="19">
            @@include("/pc/common/_search2Table.html"){}@@
            <el-row>
                <table id="user_table"
                       class="layui-table"
                       lay-filter="user_table">
                </table>
            </el-row>
        </el-col>
    </el-main>
</div>

<script type="text/html" id="table-toolbar">
    @@include("/pc/common/_buttons_table_head.html",{btns:[{id:'add',permission:'sys:user:add'}]}){}@@
</script>
<script type="text/html" id="script-usersetting">
    {{#  if(d.ACCOUNT!='admin'){ }}
    <div lay-event="detail" class="layui-icon layadmin-tabs-control layui-icon layui-icon-edit">
    </div>
    {{#  } }}
</script>
<script type="text/html" id="script-usersetting-action">
    <ul class="layui-table-col-tool">
        {{#  if(p.permission0 =='true'){ }}
        <li inx="0">
            <a href="javascript:;">行业分类授权</a>
        </li>
        {{#  } }}
        {{#  if(p.permission1 =='true'){ }}
        <li inx="1">
            <a href="javascript:;">分配角色</a>
        </li>
        {{#  } }}
        {{#  if(p.permission2 =='true'){ }}
        <li inx="2">
            <a href="javascript:;">编&nbsp;&nbsp;辑</a>
        </li>
        {{#  } }}
        {{#  if(p.permission3 =='true'){ }}
        <li inx="3">
            <a href="javascript:;">删&nbsp;&nbsp;除</a>
        </li>
        {{#  } }}
    </ul>
</script>
</body>
</html>


